home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / mweb / MWEB Utils / ws295sdk.exe / Ws2sdkzp.exe / SAMPLES / DT_DLL / HUERROR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-06  |  662 b   |  37 lines

  1. /*++
  2.  
  3.   Copyright (c) 1995 Intel Corp
  4.  
  5.   File Name:
  6.  
  7.     huerror.cpp
  8.  
  9.   Abstract:
  10.  
  11.     Header file for error functions.
  12.  
  13. --*/
  14.  
  15. #ifndef _ERRORH_
  16. #define _ERRORH_
  17.  
  18. #include <stdarg.h>
  19.  
  20. const int ERRORSTART = 0x100;
  21.  
  22. typedef enum {  ENONE     = ERRORSTART,
  23.                 OTHERERROR,
  24.                 ALLOCERROR,
  25.                 INVALIDARG,
  26.                 OBJNOTINIT,
  27.         OBJEFFERROR,  // Object effeciency error.
  28.         ALREADYCONN,
  29.         ALREADYLIST
  30.              } ErrorCode_e;
  31.  
  32. void        HUSetLastError(ErrorCode_e ErrorCode);
  33. ErrorCode_e HUGetLastError();
  34. void        HUPrintError(char *func,ErrorCode_e ErrorCode = ENONE);
  35.  
  36. #endif
  37.